package com.dt76.smallloanbackenduser.hystrix.ysy;

import com.dt76.smallloanbackenduser.pojo.ysy.YBankAccount;
import com.dt76.smallloanbackenduser.remote.ysy.AccountRemote;
import com.dt76.smallloanbackenduser.utils.Result;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
public class AccountHystrix implements AccountRemote {
    @Override
    public List<YBankAccount> qryAccountAll(){
        System.out.println("熔断机制生效！");
        return new ArrayList<>();
    }
    @Override
    public Result delacc(int yId) {
        return new Result();
    }
}
